package com.cms.recursoshumanos.facade;

import com.cms.recursoshumanos.constant.Constant;
import com.cms.recursoshumanos.handler.WServiceCall;
import com.cms.recursoshumanos.json.me.JSONParser;
import com.cms.recursoshumanos.json.object.JsonObjectAllUserDetail;

public class MyUserDetailActivyFacade
{
	private String strEmail;
	private String strPass;
	
	public MyUserDetailActivyFacade( String user,String password)
	{
		this.strEmail=user;
		this.strPass=password;
	}
	
	public String enviarSolicitud()
	{
		JSONParser jParser = new JSONParser();
		return setValores(jParser.
						getJSONFromUrl(
								Constant.URL_WEBSERVICE, 
								WServiceCall.getInstance().
								getAllUserDatils(strEmail, strPass)));
		

	}
	
	public String setValores(String strResult)
	{
		JsonObjectAllUserDetail.getInstance().fromJSON(strResult);
		return JsonObjectAllUserDetail.getInstance().getResult();
		
	}

}
